<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui">

    <ui:composition template="/produits.xhtml">
        <ui:define name="title">
            <h:outputText value="#{bundle.ViewServiceTitle}"></h:outputText>
        </ui:define>
        <ui:define name="body">
            <h:form>
                <h:panelGrid columns="2">
                    <h:outputText value="#{bundle.ViewServiceLabel_nomService}"/>
                    <h:outputText value="#{serviceController.selected.nomService}" title="#{bundle.ViewServiceTitle_nomService}"/>
                    <h:outputText value="#{bundle.ViewServiceLabel_reference}"/>
                    <h:outputText value="#{serviceController.selected.reference}" title="#{bundle.ViewServiceTitle_reference}"/>
                    <h:outputText value="#{bundle.ViewServiceLabel_categorieService}"/>
                    <h:outputText value="#{serviceController.selected.categorieService.nomCategorie}" title="#{bundle.ViewServiceTitle_categorieService}"/>
                    <h:outputText value="#{bundle.ViewServiceLabel_etatAchat}"/>
                    <h:outputText value="#{serviceController.selected.etatCommercial.etat}" title="#{bundle.ViewServiceTitle_etatAchat}"/>
                    <h:outputText value="#{bundle.ViewServiceLabel_description}"/>
                    <h:outputText value="#{serviceController.selected.description}" title="#{bundle.ViewServiceTitle_description}"/>
                    <h:outputText value="#{bundle.ViewServiceLabel_codeDouane}"/>
                    <h:outputText value="#{serviceController.selected.codeDouane}" title="#{bundle.ViewServiceTitle_codeDouane}"/>
                    <h:outputText value="#{bundle.ViewServiceLabel_paysOrigine}"/>
                    <h:outputText value="#{serviceController.selected.paysOrigine.nomPays}" title="#{bundle.ViewServiceTitle_paysOrigine}"/>
                    <h:outputText value="#{bundle.ViewServiceLabel_informationFacture}"/>
                    <h:outputText value="#{serviceController.selected.informationFacture}" title="#{bundle.ViewServiceTitle_informationFacture}"/>
                    <h:outputText value="#{bundle.ViewServiceLabel_prixAchat}"/>
                    <h:outputText value="#{serviceController.selected.prixAchat}" title="#{bundle.ViewServiceTitle_prixAchat}"/>
                    <h:outputText value="#{bundle.ViewServiceLabel_tvaAchat}"/>
                    <h:outputText value="#{serviceController.selected.tvaAchat.toString()}" title="#{bundle.ViewServiceTitle_tvaAchat}"/>
                    <h:outputText value="#{bundle.ViewServiceLabel_prixVente}"/>
                    <h:outputText value="#{serviceController.selected.prixVente}" title="#{bundle.ViewServiceTitle_prixVente}"/>
                    <h:outputText value="#{bundle.ViewServiceLabel_tvaVente}"/>
                    <h:outputText value="#{serviceController.selected.tvaVente.toString()}" title="#{bundle.ViewServiceTitle_tvaVente}"/>
                </h:panelGrid>
                <br />
                <h:commandLink action="#{serviceController.destroyAndView}" value="#{bundle.ViewServiceDestroyLink}"/>
                <br />
                <h:commandLink action="Edit" value="#{bundle.ViewServiceEditLink}"/>
                <br />
                <br />
                <h:commandLink action="#{serviceController.prepareCreate}" value="#{bundle.ViewServiceCreateLink}" />
                <br />
                <h:commandLink action="#{serviceController.prepareList}" value="#{bundle.ViewServiceShowAllLink}"/>
            </h:form>
        </ui:define>
    </ui:composition>

</html>
